package com.kaili.basic.pojo.dto;

import com.kaili.common.pojo.dto.PageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;
import java.util.Date;

@Data
@ApiModel(description = "机构新增Dto")
public class MdmOrgAddDto {
    @NotEmpty(message = "机构编码不能为空")
    @Size(max = 15,message = "机构编码最多15位字符")
    @ApiModelProperty("机构编码")
    private String orgCode;

    @NotEmpty(message = "机构名称不能为空")
    @Size(max = 20,message = "机构名称最多15位字符")
    @ApiModelProperty("机构名称")
    private String orgName;

    @ApiModelProperty("所属公司ID")
    private Long companyId;

    @ApiModelProperty("所属省份ID")
    private Long provinceId;

    @ApiModelProperty("所属城市ID")
    private Long cityId;

    @ApiModelProperty("所属区县ID")
    private Long countyId;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("创建人Id")
    private Integer createBy;

    @ApiModelProperty("创建时间")
    private Date createTime;
}
